<?php
namespace app\admin\loglic;

class Video
{
    public function fields()
    {
        return [
            'video_in'   => [
                'type'   => 'switch',
                'value'  => config('common.video_in'),
            ],
            'video_size' => [
                'type'   => 'custom',
                'value'  => config('common.video_size'),
                'option' => [
                    '16by9'=>lang('video_size_16by9'),
                    '21by9'=>lang('video_size_21by9'),
                    '4by3'=>lang('video_size_4by3'),
                    '1by1'=>lang('video_size_1by1')
                ],
                'class_left'  => 'col-md-2',
                'class_right' => 'col-auto',
            ],
            'video_ai'  => [
                'type'  => 'text',
                'value' => config('common.video_ai'),
            ],
            'video_frontUrl'  => [
                'type'  => 'text',
                'value' => config('common.video_frontUrl'),
            ],
            'video_frontTime' => [
                'type'  => 'text',
                'value' => config('common.video_frontTime'),
            ],
            'video_endUrl'   => [
                'type'  => 'text',
                'value' => config('common.video_endUrl'),
            ],
            'video_endTime'  => [
                'type'  => 'text',
                'value' => config('common.video_endTime'),
            ],
            'video_pause'    => [
                'type'  => 'text',
                'value' => config('common.video_pause'),
            ],
            'video_buffer'   => [
                'type'  => 'text',
                'value' => config('common.video_buffer'),
            ],
            'video_advUnit'  => [
                'type'  => 'hidden',
                'value' => config('common.video_advUnit'),
            ],
        ];
    }
}